import { EditorTheme } from '@/types/enum/configEnum'
import { gptMessageRole } from '@/types/enum/index'
// 编辑器配置项接口
interface EditorConfig {
  theme: EditorTheme
  fontSize: number
  value: string
  language: 'python'
  autoIndent: true
  selectOnLineNumbers: true
  minimap: {
    enabled: false // 是否启用预览图
  }
}

// 代码转换接口
interface transformCodeResponse {
  code: string
  message: string
  success: boolean
}

interface messageInterface {
  role: gptMessageRole
  content: string
}

// 发送chatgpt请求接口
interface chatGptResponse {
  user_id: string
  messages: messageInterface[]
}

export { EditorConfig, transformCodeResponse, chatGptResponse }
